VistaDB 6
VistaDB.Web Namespace / VistaDBMembershipProvider Class / EncryptPassword Method / EncryptPassword(Byte[]) Method
A byte array that contains the password to encrypt.


In This Topic
    EncryptPassword(Byte[]) Method
    In This Topic
    Encrypts a password.
    Syntax
    'Declaration
     
    
    Protected Overloads Function EncryptPassword( _
       ByVal password() As System.Byte _
    ) As System.Byte()
    'Usage
     
    
    Dim instance As VistaDBMembershipProvider
    Dim password() As System.Byte
    Dim value() As System.Byte
     
    value = instance.EncryptPassword(password)
    protected System.byte[] EncryptPassword( 
       System.byte[] password
    )

    Parameters

    password
    A byte array that contains the password to encrypt.

    Return Value

    A byte array that contains the encrypted password.
    Exceptions
    ExceptionDescription
    The System.Web.Configuration.MachineKeySection.ValidationKey property or System.Web.Configuration.MachineKeySection.DecryptionKey property is set to AutoGenerate.
    This method is not available. This can occur if the application targets the .NET Framework 4 Client Profile. To prevent this exception, override the method, or change the application to target the full version of the .NET Framework.
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also